<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
<link rel="stylesheet" href="__ROOT__/themes/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<?php echo importCSS("template.css|style.css|contractor.css|font.css");?>
<?php echo importJS("jquery.min.js");?>
<script type="text/javascript">
$().ready(function () {
	$('#countrybutton').fancybox({
		'margin'	:	0,
		'padding'	:	0,
		'width'	:	500,
	});
	$("#dosearch").click(function() { 
		if ( $('input#name').val() == '<?php echo L('CONTRACTOR_NAME');?>' ) { 
			$('input#name').val("") 
		}; 
		$('form').submit(); 
	});
});
</script>
</head>
<body>
<?php echo L('LANG_FONT');?>
<script> var THEME_ROOT = '__ROOT__/themes/' ; </script>
<div class="header clearfix">
	<div class="center">
    	<a href="<?php echo U('/index');?>"><div class="logo">
        	<img src="__ROOT__/themes/images/logo.png" />
        </div></a>
        <div class="menu">
        	<a href="<?php echo U('/work/index');?>" <?php echo ($nav_menu=="work"?" class='now'":"");?>><div><?php echo L('HEADER_WORK');?></div></a> <!-- class="now"-->
            <a href="<?php echo U('/contractor/index');?>" <?php echo ($nav_menu=="contractor"?" class='now'":"");?>><div><?php echo L('HEADER_CONTRACTOR');?></div></a>
            <a href="<?php echo U('/space/index');?>" <?php echo ($nav_menu=="space"?" class='now'":"");?>><div><?php echo L('HEADER_MY_SPACE');?></div></a>
        </div>
        <div class="search">
        	<div><img src="__ROOT__/themes/images/search.png" /></div>
        	<form method="get" action="<?php echo U('/work/index');?>" >
            <input type="text" id="search" name="name" value="<?php echo L('HEADER_SEARCH');?>" onfocus="if(value=='<?php echo L('HEADER_SEARCH');?>') {value=''} setStyleOne(this.id)" onblur="if (value=='') { value='<?php echo L('HEADER_SEARCH');?>' } setStyleTwo(this.id)"/>
            </form>
        </div>
        <?php if ($_cUser) { ?>
        <div class="signafter">
        	<a href="<?php echo U('/signout');?>"><div  class="outbutton"><?php echo L('HEADER_SIGN_OUT');?></div></a>
        	<a href="<?php echo U('/space/index');?>"><div class="word"><?php echo ($_cUser["username"]); ?></div></a>
        </div>
        <?php } else { ?>
        <div class="sign">
        	<a href="<?php echo U('/join');?>"><div><?php echo L('HEADER_JOIN');?></div></a>
            <a href="<?php echo U('/signin');?>"><div><?php echo L('HEADER_SIGN_IN');?></div></a>
        </div>
        <?php } ?>
    </div>
</div>
<div class="clear"></div>

<div class="main center clearfix">
	<div class="searchbox"><form method="get" action="<?php echo U('contractor/index');?>">
        <div class="clear"></div>
        <div class="namebox box"><input type="text" id="name" name="name" value="<?php echo inputDefault('name',L('CONTRACTOR_NAME'));?>" onfocus="if(value=='<?php echo L('CONTRACTOR_NAME');?>') {value=''} setStyleOne(this.id)" onblur="if (value=='') { value='<?php echo L('CONTRACTOR_NAME');?>' } setStyleTwo(this.id)"/></div>
        <div class="countrybox box">
            <div id="countryname" class="country"><?php $__country = inputDefault('country',L('WORK_COUNTRY')); if (L('COUNTRY_LANG') == "en" || $__country == L('WORK_COUNTRY')) { echo $__country; } else { echo M("country")->getFieldByEn($__country,L('COUNTRY_LANG')); } ?>
            </div>
            <a id="countrybutton" href="#countrybox"><div class="countrybutton"></div></a>
            <div class="hide">
            			<div id="countrybox">
            	<div class="firstlist"><a href="#" class="now">A</a><a href="#">B</a><a href="#">C</a><a href="#">D</a><a href="#">E</a><a href="#">F</a><a href="#">G</a><a href="#">H</a><a href="#">I</a><a href="#">J</a><a href="#">K</a><a href="#">L</a><a href="#">M</a><a href="#">N</a><a href="#">O</a><a href="#">P</a><a href="#">Q</a><a href="#">R</a><a href="#">S</a><a href="#">T</a><a href="#">U</a><a href="#">V</a><a href="#">W</a><a href="#">X</a><a href="#">Y</a><a href="#">Z</a></div>
            	<?php echo buildCountry();?><!--
                <div class="countryname" id="ct_A"><div><a href="#">Afghanistan</a></div><div><a href="#">Albania</a></div><div><a href="#">Algeria</a></div><div><a href="#">America</a></div><div><a href="#">Andorra</a></div><div><a href="#">Angola</a></div><div><a href="#" >Antarctica</a></div><div><a href="#">Argentina</a></div><div><a href="#">Armenia</a></div><div><a href="#">Aruba</a></div><div><a href="#">Australia</a></div><div><a href="#">Austria</a></div><div><a href="#">Azerbaijan</a></div></div>-->
                <div class="clear"></div>
                <input type="hidden" name="country" value="" />
            </div>
            <style>
            	#countrybox .countryname { display:none }
            </style>
            <script>
            	$("#countrybox .firstlist a").click(function() {
            		$("#countrybox .firstlist a").removeClass("now");
            		$(this).addClass("now");
            		$("#countrybox .countryname").hide();
            		$("#ct_"+$(this).text()).show();
            	});
            	
            	$(".countryname a").click(function(){
            		$.fancybox.close();
            		var _txt =$(this).text();
            		var _val =$(this).attr("val");
            		$("#countryname").text(_txt);
            		$("#countrybox input[name=country]").val(_val);
            	});
            </script>
            </div>
    	</div>
        <div class="accbox box">
    		<div class="inputimg"><img src="__ROOT__/themes/images/vendor-acc-dark.png" /></div>
            <div class="inputname"><?php echo L('CONTRACTOR_AUTHENTICATION');?></div>
            <div class="choice"><img src="__ROOT__/themes/images/su-<?php echo ($_REQUEST['isverify']?'':'dis');?>agree.png" id="checkAut" /></div>
            <input type="hidden" id="aut" name="isverify" class="hide" value="<?php echo ($_REQUEST['isverify']?'1':'0');?>"/>
    	</div>
        <div class="probox box">
    		<div class="inputimg"><img src="__ROOT__/themes/images/vendor-pro.png" /></div>
            <div class="inputname"><?php echo L('CONTRACTOR_CASE');?></div>
            <div class="choice"><img src="__ROOT__/themes/images/su-<?php echo ($_REQUEST['hasCase']?'':'dis');?>agree.png" id="checkPro"/></div>
            <input type="hidden" id="profile" name="hasCase" class="hide" value="<?php echo ($_REQUEST['hasCase']?'1':'0');?>"/>
    	</div>
        <div class="dosearch">
        	<a class="button" id="dosearch" href="javascript:void(0)"><?php echo L('CONTRACTOR_SEARCH');?></a>
    	</div>
    	</form>
    </div>
    <div class="clear"></div>
    <div class="headline">
    	<div class="pinfor line"><?php echo L('CONTRACTOR_PERSONAL_INFO');?></div>
        <div class="pskill line"><?php echo L('CONTRACTOR_SKILLS');?></div>
        <div class="ppro line"><?php echo L('CONTRACTOR_PROFILE');?></div>
        <div class="pfeed line"><?php echo L('CONTRACTOR_FEEDBACK');?></div>
        <div class="pacq line"><?php echo L('CONTRACTOR_PROJECTS_ACQUIRED');?></div>
        <div class="pup line"><?php echo L('CONTRACTOR_CASES_UPLOADED');?></div>
        <div class="pre line"><?php echo L('CONTRACTOR_TOTAL_REVENUE');?></div>
    </div>
    <div class="clear"></div>
    <table class="list">
    	<?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="person">
        	<td class="pimg"><div style="height:50px;width:50px;overflow:hidden"><a href="<?php echo U('/contractor/view/'.$vo['id']);?>"><img src="<?php echo getAvatar($vo);?>" width=50 /></a></div></td>
            <td class="pinfor">
            	<div class="pname"><a href="<?php echo U('/contractor/view/'.$vo['id']);?>"><?php echo ($vo["username"]); ?></a></div>
                <div class="pcoun"><?php echo M("country")->getFieldByCode($vo['country'],L('COUNTRY_LANG'));?></div>
                <div class="clear"></div>
                <div class="pcer"><?php if(($vo["isverify"]) == "4"): ?><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;"><?php echo h(xserialize($vo['verifyinfo'],'realname'));?></div><?php endif; ?></div>
            </td>
            <td class="pskill"><?php echo ($vo["userskill"]); ?></td>
            <td class="ppro">85%</td>
            <td class="pfeed"><?php echo ($vo["remark"]); ?>%</td>
            <td class="pacq"><?php echo countAcq($vo['id']);?></td>
            <td class="pup"><?php echo countCase($vo['id']);?></td>
            <td class="ppre"><?php echo ($vo["revenue"]); ?></td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <!--
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg1.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><div style="float:left;padding-top:2px;">No Certification</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg1.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><div style="float:left;padding-top:2px;">No Certification</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>
        <tr class="person">
        	<td class="pimg"><img src="__ROOT__/themes/images/pimg.png" /></td>
            <td class="pinfor">
            	<div class="pname"><a href="contractor-single.html">DavidTian</a></div>
                <div class="pcoun">China</div>
                <div class="clear"></div>
                <div class="pcer"><img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/><div style="float:left;padding-top:2px;">Tian DaWei</div></div>
            </td>
            <td class="pskill">Key-Animetor/Character Setting/3D Modelling/Skeleton Binding</td>
            <td class="ppro">85%</td>
            <td class="pfeed">95%</td>
            <td class="pacq">12</td>
            <td class="pup">20</td>
            <td class="ppre">4000</td>
        </tr>-->
        <tr>
        	<td class="page"><?php echo ($_page); ?></td>
        </tr>
    </table>
</div>

<div class="footer">

</div>
<?php echo importJS("downlist.js|input.js|signup.js");?>
<script type="text/javascript" src="__ROOT__/themes/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
</body>
</html>